package com.kfpanda.spring.batch.incrementer;

import javax.annotation.Resource;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.listener.JobExecutionListenerSupport;

public class IncrementUpdateListener extends JobExecutionListenerSupport{
	
	@Resource(name = "h2JdbcIncrement")
	private JdbcIncrement<?> jdbcIncrement;
	
	@Override
	public void afterJob(JobExecution jobExecution) {
		jdbcIncrement.updateIncrementer(jobExecution);
	}
	
}
